﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Big2.Big2Game
{
    public class Table
    {
        public Play CurrentPlay { get; set; }
        public Play LastPlay { get; set; }
        public List<Player> Players {get; set; }
        public string CurrentTurnPlayerName { get; set; } //holds the name of the play who turn is

        public Table() 
        {
            Players = new List<Player>();
            resetTable();

        }
        public void resetTable()
        {
            CurrentPlay = null;
            LastPlay = null;
            CurrentTurnPlayerName = null;
            if(Players.Count>0)
                Players.ForEach(delegate(Player p){p.ResetHand(); });
        }
    }
}
